<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>分享页面</title>
</head>
<style type="text/css">
    body{
        margin: 0;
    }
    .cover{
        padding-top:100%;
        height: 0;
        overflow:hidden;
    }
    .cover img{
        position:absolute;
        top:0;
        width:100%;
    }
</style>
<body>
<div class="cover">
    <img src="../../resources/content/images/sharePageWithFKJP.jpg">
</div>
</body>
</html>

<script>
    window.onload(function(){
        is_weixn();
    })

    function is_weixn(){
        var ua = navigator.userAgent.toLowerCase();
        if(ua.match(/MicroMessenger/i)=="micromessenger") {
            alert(ua);
            return true;
        } else {
            return false;
        }
    }
</script>